package com.klamerek.rainbow.client.charts;

public class NGoneChartElt {

	/**
	 * The value.
	 */
	private int value;
	
	/**
	 * The max value.
	 */
	private int maxValue;
	
	/**
	 * Name of this element.
	 */
	private String name;
	
	/**
	 * Description of this element.
	 */
	private String description;

	/**
	 * Constructor
	 */
	public NGoneChartElt(){
		this.value = 0;
		this.maxValue = 0;
		this.name = "";
		this.description = "";
	}
	
	/**
	 * Constructor
	 * @param value
	 * @param maxValue
	 */
	public NGoneChartElt(int value, int maxValue){
		this.value = value;
		if (this.value > maxValue){
			this.maxValue = this.value;
		}else{
			this.maxValue = maxValue;
		}
		this.name = "";
		this.description = "";
	}
	
	/**
	 * Constructor
	 * @param value
	 * @param maxValue
	 * @param name
	 * @param description
	 */
	public NGoneChartElt(int value, int maxValue, String name, String description){
		this.value = value;
		if (this.value > maxValue){
			this.maxValue = this.value;
		}else{
			this.maxValue = maxValue;
		}
		this.name = name;
		this.description = description;
	}
	
	public int getValue() {
		return this.value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getMaxValue() {
		return this.maxValue;
	}

	public void setMaxValue(int maxValue) {
		this.maxValue = maxValue;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	
	
}
